#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
long long fun(long x,long y)
{
	long long b = 1;
	while (x>y)
	{
		b *= x;
		x--;
	}
	y++;
	while (y>0)
	{
		b /= y;
		y--;
	}
	return b;
}
long catelan(long n)
{
	long long b = fun(2 * n,n);
	
	return b*2;
}

int main()
{
	int i = 1;
	while (1)
	{
		long n = 0;
		scanf("%ld", &n);
		if (n == -1)
			break;
		printf("%d %ld ", i++, n);
		long long f = catelan(n);
		printf("%ld\n", f);
	}
}
